<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/template.xhtml">
    <ui:define name="title">大额渠道修改</ui:define>
    <ui:define name="content">
        <h:form>
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="保存" icon="fa fa-save" update="@form"
                                         actionListener="#{loanChannelNdInfoBean.save()}"/>
                        <p:commandButton icon="fa fa-reply-all" value="返回"
                                         action="#{loanChannelNdInfoBean.onReturn()}"
                                         process="@this"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">0
                <div class="ui-g">
                    <div class="ui-g-12">
                        <div class="card ui-g-12">
                            <div class="ui-g-12">
                                <div class="ui-g-1">
                                    <p:outputLabel value="大额外推渠道"/>
                                </div>
                                <div class="ui-g-3">
                                    <p:inputText disabled="#{loanChannelNdInfoBean.isView()}" value="#{loanChannelNdInfoBean.$.channel_nd}"/>
                                </div>

                                <div class="ui-g-1">
                                    <p:outputLabel value="大额外推名称"/>
                                </div>
                                <div class="ui-g-3">
                                    <p:inputText value="#{loanChannelNdInfoBean.$.channelNdName}"/>
                                </div>

                                <div class="ui-g-1">
                                    <p:outputLabel value="对应产品渠道"/>
                                </div>
                                <div class="ui-g-3">
                                    <p:selectCheckboxMenu value="#{loanChannelNdInfoBean.channels}" label="Cities" multiple="true"
                                                          filter="true" filterMatchMode="contains">
                                        <f:selectItems value="#{loanChannelNdInfoBean.commProductChannels}"
                                                       var="channel"
                                                       itemLabel="#{channel.channelName}(#{channel.channelCode})" itemValue="#{channel.channelCode}"/>
                                    </p:selectCheckboxMenu>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </h:form>
    </ui:define>
</ui:composition>
